html {
  box-sizing: border-box;
}

:root {
  --sun-color: #ffbb10;
  --sky-color-1: #fbd788;
  --sky-color-2: #ffefc0;
  --sky-color-3: #e8bf62;
  --land-color-1: #62b144;
  --land-color-2: #3d9339;
  --grass-color-1: #37913b;
  --grass-color-2: #8bc435;
  --brick-color-1: #d58256;
  --brick-color-2: #cd7555;
  --wood-color-1: #623b39;
  --wood-color-2: #472a2a;
  --wood-color-3: #2e1d1d;
  --wood-color-4: #000000;
  --window-color-1: #e3e1e1;
  --window-color-2: #000000;
  --window-color-3: #ffffff;
  --mill-top-color: #c0c0c0;
  --mill-bottom-color-1: #8f3c31;
  --mill-bottom-color-2: #9c4b3d;
  --dome-color: #ffffff;
  --blade-color-1: #fd903d;
  --blade-color-2: #be684f;
  --window-move-time: 2s;
  --land-slide-time: 2s;
  --blades-spin-time: 6s;
}

*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.scene {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 540px;
  height: 540px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(farthest-side at 135px 340px, var(--sky-color-2) 135px, transparent 135px), radial-gradient(farthest-side at 405px 300px, var(--sky-color-1) 140px, transparent 135px), linear-gradient(to bottom, var(--sky-color-1) 320px, var(--sky-color-2) 320px);
}
.scene::before {
  position: absolute;
  content: "";
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(to bottom, transparent 490px, var(--sky-color-3) 490px, var(--sky-color-3) 510px, var(--sky-color-1) 510px);
}
.scene * {
  position: absolute;
}
.scene .land {
  width: 460px;
  height: 40px;
  background: var(--land-color-1);
  border-radius: 20px 20px 5px 5px;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) scale(1);
  z-index: 2;
  border-bottom: 5px solid var(--land-color-2);
}
.scene .grass {
  background-color: transparent;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
}
.scene .grass-1 {
  z-index: 1;
  width: 60px;
  height: 30px;
  border-radius: 30px 30px 0 0;
}
.scene .grass-2 {
  z-index: 2;
  width: 40px;
  height: 20px;
  border-radius: 20px 20px 0 0;
}
.scene .grass-1 {
  box-shadow: -90px 0 0 0 var(--grass-color-1), -130px 4px 0 -4px var(--grass-color-1), -165px 8px 0 -8px var(--grass-color-1), 90px 0 0 0 var(--grass-color-1), 140px 4px 0 -4px var(--grass-color-1), 165px 8px 0 -8px var(--grass-color-1);
}
.scene .grass-2 {
  box-shadow: -90px 0 0 0 var(--grass-color-2), -60px 2px 0 -2px var(--grass-color-2), -35px 5px 0 -5px var(--grass-color-2), 90px 0 0 0 var(--grass-color-2), 60px 2px 0 -2px var(--grass-color-2), 35px 5px 0 -5px var(--grass-color-2);
}
.scene .windmill {
  width: 180px;
  height: 280px;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  z-index: 2;
}
.scene .windmill::before, .scene .windmill::after {
  position: absolute;
  content: "";
}
.scene .windmill::before {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 30px;
  background: var(--mill-top-color);
  border-radius: 0 0 20px 20px/0 0 45px 45px;
}
.scene .windmill::after {
  width: 100%;
  height: 50px;
  bottom: 0;
  background: linear-gradient(to bottom, var(--mill-bottom-color-1) 25px, var(--mill-bottom-color-2) 25px, var(--mill-bottom-color-2) 45px, var(--mill-bottom-color-1) 45px);
}
.scene .windmill .window {
  left: 50%;
  top: 30%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: transparent;
  box-shadow: 5px 25px 0 0 var(--window-color-2), -5px 25px 0 0 var(--window-color-2), 5px 35px 0 0 var(--window-color-2), -5px 35px 0 0 var(--window-color-2), 0 30px 0 5px var(--window-color-1), 0 30px 0 8px var(--window-color-3), 5px -25px 0 0 var(--window-color-2), -5px -25px 0 0 var(--window-color-2), 5px -35px 0 0 var(--window-color-2), -5px -35px 0 0 var(--window-color-2), 0 -30px 0 5px var(--window-color-1), 0 -30px 0 8px var(--window-color-3);
}
.scene .windmill .pillar {
  width: 100%;
  height: 200px;
  bottom: 50px;
  background-image: linear-gradient(335deg, var(--brick-color-2) 6px, transparent 6px), linear-gradient(155deg, var(--brick-color-2) 6px, transparent 6px), linear-gradient(335deg, var(--brick-color-2) 6px, transparent 6px), linear-gradient(155deg, var(--brick-color-2) 6px, transparent 6px);
  background-size: 15px 15px;
  background-position: 0 0, 2px 9px, 7px 8px, 9px 1px;
  background-color: var(--brick-color-1);
  -webkit-clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
          clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 4px 0 0 var(--wood-color-1);
}
.scene .windmill .dome {
  width: 110px;
  height: 65px;
  background: var(--dome-color);
  border-radius: 55px 55px 0 0;
  left: 50%;
  transform: translateX(-50%);
  top: -65px;
}
.scene .windmill .dome-window {
  width: 24px;
  height: 26px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(to right, transparent 8px, var(--window-color-1) 8px, var(--window-color-1) 10px, transparent 10px), linear-gradient(to bottom, transparent 9px, var(--window-color-1) 9px, var(--window-color-1) 11px, transparent 11px), var(--window-color-2);
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  border: 3px solid var(--window-color-1);
}
.scene .windmill .dome-window::before {
  position: absolute;
  content: "";
  width: 32px;
  height: 2px;
  background: var(--window-color-1);
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 0 0 var(--wood-color-1);
}
.scene .windmill .blades {
  z-index: -1;
  width: 20px;
  height: 20px;
  background: var(--wood-color-3);
  border-radius: 50%;
  left: 44%;
  top: -12%;
  transform: translate(-50%, -50%) rotate(40deg);
  animation: blades-spin var(--blades-spin-time) linear infinite;
}
.scene .windmill .blades .blade {
  width: 200px;
  height: 60px;
  background: var(--blade-color-1);
  left: 60px;
  top: -5px;
  transform-origin: -50px 15px;
  transform: rotate(0);
  box-shadow: 0 5px 0 0 var(--blade-color-2), 0 -5px 0 0 var(--blade-color-2);
}
.scene .windmill .blades .blade::before, .scene .windmill .blades .blade::after {
  position: absolute;
  content: "";
}
.scene .windmill .blades .blade::before {
  width: 260px;
  height: 8px;
  background: var(--wood-color-2);
  border-radius: 5px;
  top: 11px;
  left: -55px;
}
.scene .windmill .blades .blade::after {
  width: 4px;
  height: 75px;
  background: var(--wood-color-1);
  border-radius: 2px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: -33px 0 0 0 var(--wood-color-1), -67px 0 0 0 var(--wood-color-1), -100px 0 0 0 var(--wood-color-1), 33px 0 0 0 var(--wood-color-1), 67px 0 0 0 var(--wood-color-1), 100px 0 0 0 var(--wood-color-1);
}
.scene .windmill .blades .blade-1 {
  transform: rotate(0deg);
}
.scene .windmill .blades .blade-2 {
  transform: rotate(90deg);
}
.scene .windmill .blades .blade-3 {
  transform: rotate(180deg);
}
.scene .windmill .blades .blade-4 {
  transform: rotate(270deg);
}
.scene .windmill .ramp {
  width: 240px;
  height: 35px;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent 10px, var(--wood-color-4) 10px, var(--wood-color-4) 15px, transparent 15px), linear-gradient(to right, var(--wood-color-1) 32%, var(--wood-color-2) 32%, var(--wood-color-2) 66%, var(--wood-color-3) 66%);
  z-index: 2;
  border-radius: 5px;
}
.scene .windmill .ramp::before {
  position: absolute;
  content: "";
  width: 20px;
  height: 5px;
  background: transparent;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: -115px 0 0 0 var(--sky-color-2), 115px 0 0 0 var(--sky-color-1);
}
.scene .windmill .ramp .grill {
  width: 6px;
  height: 25px;
  background: transparent;
  border-radius: 2px 2px 0 0;
  left: 50%;
  transform: translateX(-50%);
  top: -25px;
  box-shadow: -100px 0 0 0 var(--wood-color-1), -60px 0 0 0 var(--wood-color-1), -20px 0 0 0 var(--wood-color-2), 20px 0 0 0 var(--wood-color-2), 60px 0 0 0 var(--wood-color-3), 100px 0 0 0 var(--wood-color-3);
}
.scene .windmill .ramp .grill::before {
  position: absolute;
  content: "";
  width: 240px;
  height: 6px;
  background: linear-gradient(to right, var(--wood-color-2) 33%, var(--wood-color-3) 33%, var(--wood-color-3) 66%, var(--wood-color-4) 66%);
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}
.scene .windmill .ramp .hook {
  width: 8px;
  height: 24px;
  bottom: -24px;
  transform-origin: 0 0;
}
.scene .windmill .ramp .hook::before, .scene .windmill .ramp .hook::after {
  position: absolute;
  content: "";
}
.scene .windmill .ramp .hook::before {
  width: 8px;
  height: 10px;
  background: var(--mill-bottom-color-1);
  bottom: 0;
  transform: skew(-50deg);
}
.scene .windmill .ramp .hook::after {
  width: 8px;
  height: 10px;
  background: inherit;
  bottom: 0;
}
.scene .windmill .ramp .hook-1 {
  background: var(--wood-color-1);
  left: 2%;
  transform: skew(50deg);
}
.scene .windmill .ramp .hook-1::before {
  right: -5px;
  transform: skew(-50deg);
}
.scene .windmill .ramp .hook-2 {
  background: var(--wood-color-2);
  left: 33.5%;
  transform: skew(25deg);
}
.scene .windmill .ramp .hook-2::before {
  right: -2.5px;
  transform: skew(-25deg);
}
.scene .windmill .ramp .hook-3 {
  background: var(--wood-color-3);
  left: 64%;
  transform: skew(-25deg);
}
.scene .windmill .ramp .hook-3::before {
  right: 2.5px;
  transform: skew(25deg);
}
.scene .windmill .ramp .hook-4 {
  background: var(--wood-color-4);
  left: 95.5%;
  transform: skew(-50deg);
}
.scene .windmill .ramp .hook-4::before {
  right: 5px;
  transform: skew(50deg);
}
.scene .sun {
  width: 140px;
  height: 140px;
  background: var(--sun-color);
  border-radius: 50%;
  right: 0;
  top: 80px;
}

@keyframes blades-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(1turn);
  }
}